using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tUser : BusinessBase<uint>
    {
        #region Declarations

		private string _userid = String.Empty;
		private string _password = String.Empty;
		private string _username = String.Empty;
		private string _email = String.Empty;
		
		private tShop _tShop = null;
		private tRole _tRole = null;
		
		
		#endregion

        #region Constructors

        public tUser() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_userid);
			sb.Append(_password);
			sb.Append(_username);
			sb.Append(_email);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Userid
        {
            get { return _userid; }
			set
			{
				OnUseridChanging();
				_userid = value;
				OnUseridChanged();
			}
        }
		partial void OnUseridChanging();
		partial void OnUseridChanged();
		
		public virtual string Password
        {
            get { return _password; }
			set
			{
				OnPasswordChanging();
				_password = value;
				OnPasswordChanged();
			}
        }
		partial void OnPasswordChanging();
		partial void OnPasswordChanged();
		
		public virtual string Username
        {
            get { return _username; }
			set
			{
				OnUsernameChanging();
				_username = value;
				OnUsernameChanged();
			}
        }
		partial void OnUsernameChanging();
		partial void OnUsernameChanged();
		
		public virtual string Email
        {
            get { return _email; }
			set
			{
				OnEmailChanging();
				_email = value;
				OnEmailChanged();
			}
        }
		partial void OnEmailChanging();
		partial void OnEmailChanged();
		
		public virtual tShop TShop
        {
            get { return _tShop; }
			set
			{
				OnTShopChanging();
				_tShop = value;
				OnTShopChanged();
			}
        }
		partial void OnTShopChanging();
		partial void OnTShopChanged();
		
		public virtual tRole TRole
        {
            get { return _tRole; }
			set
			{
				OnTRoleChanging();
				_tRole = value;
				OnTRoleChanged();
			}
        }
		partial void OnTRoleChanging();
		partial void OnTRoleChanged();
		
        #endregion
    }
}
